package com.example.syn_4s

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity()
//{
//    private val apkInstaller = ApkInstaller(this::onActivityResult)
//
//    override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
//        MethodChannel(flutterEngine.dartExecutor.binaryMessenger, "apk_installer").setMethodCallHandler { call, result ->
//            when (call.method) {
//                "installApk" -> apkInstaller.installApk(call.arguments as String, result)
//                else -> result.notImplemented()
//            }
//        }
//    }
//
//    private fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?): Boolean {
//        // Handle the result of the activity if needed
//        return true  // `true` if the result has been handled, `false` otherwise
//    }
//}
